<template>
  <div class="">
    <div class="common_title pad_b20 margin_b20">公告详情</div>
    <div class="bg_fff pad_tb20 pad_lr40">
      <h3>{{form.title}}</h3>
      <p class="color_999">发布时间：{{form.create_time}} <span class="pad_l20">发布人：{{form.author}}</span></p>
      <div class="pad_tb30">
        <div v-html="form.content"></div>
      </div>
    </div>

  </div>
</template>

<script>
export default {
  name: 'add_company',
  components: {},
  data () {
    return {
      id: '',
      is_ajax: false,
      form: {

      }
    }
  },
  created() {
    this.id=this.$route.query.id || '';
    if(this.id){
        this.get_data()
    }
  },
  methods:{

    get_data(){
        this.axios.get("/api/Article/read", {params:{id:this.id}}).then((res) => {
            if (res) {
                let _data=res.data;
                _data.content=this.add_upload_http(_data.content);
                this.form=_data
            } else {
                this.$message.error(res.message);
            }
        }).catch((err) => {
            console.log(err);
        });
    },

  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>


</style>
